package edu.lmu.cs.forney.roflkode.entities;

import edu.lmu.cs.forney.util.Log;

/**
 * The roflkode WERD...MEBBE...NO WAI statement.
 */
public class Modifier extends Expression {
	public static final int IF = 0;
	public static final int CEPT_IF = 1;
	public static final int WHIEL = 2;
	public static final int TIL = 3;
	
    private int modifierType;
    private Expression expression;

    /**
     * Create an if statement with a complete list of cases.
     */
    public Modifier(int modifierType, Expression expression) {
        this.modifierType = modifierType;
        this.expression = expression;
    }

    /**
     * Returns the modifier type.
     */
    public int getModifierType() {
        return modifierType;
    }
    
    /**
     * Returns the expression.
     */
    public Expression getExpression() {
        return expression;
    }

    /**
     * Analyzes the if-statement (by analyzing each case).
     */
    public void analyze(Log log, SymbolTable table) {
//        for (Case c: cases) {
//            c.analyze(log, table, f, inLoop);
//        }
    }
}
